package com.ethink.warehouse.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 仓库入库单 数据库实体
 *
 * @author default
 * @date 2022-12-16
 */
@Data
@TableName("t_stock_in_order")
public class StockInOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String PURCHASE_ORDER_NO ="purchase_order_no";

    public static final String OUT_ORDER_NO ="out_order_no";

    public static final String OWNER_CODE ="owner_code";

    public static final String IN_STOCK_TYPE ="in_stock_type";

    public static final String IN_STOCK_STATUS ="in_stock_status";

    public static final String OPERATE_TIME ="operate_time";


    /** 原单据号 */
    private String orderNo;

    /** 采购单号 */
    private String purchaseOrderNo;

    /** 外部入库单号 */
    private String outOrderNo;

    /** 货主编码 */
    private String ownerCode;

    /** 枚举 入库类型: 1-生产入库(t1)|2-采购入库(t2)|3-调拨入库(t3)|4-其他入库(t4)|5-B2B入库(t5)|6-领用入库(t6)|7-残次品入库(t7)|8-虚拟入库(t8) */
    private Integer inStockType;

    /** 枚举 入库状态: 1-未开始处理(new)|2-仓库接单(accept)|3-部分收货完成(part_in)|4-收货完成(full_in)|5-异常(exception)|6-取消(cancel)|7-关闭(close)|8-拒单(reject)|8-取消失败(cancel_fail) */
    private Integer inStockStatus;

    /** 入库时间 */
    private Date operateTime;

}
